package di.finaldi;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope(value="prototype")
public class Computer {	
	@Value(value="${si.maker}")
	private String maker;
	@Value(value="${si.cpu}")
	private String cpu;
	@Value(value="${si.price}")
	private int price;
	
	public String getMaker() {
		return maker;
	}
	public void setMaker(String maker) {
		this.maker = maker;
	}
	public String getCpu() {
		return cpu;
	}
	public void setCpu(String cpu) {
		this.cpu = cpu;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	@Override
	public String toString() {
		return "Computer [maker=" + maker + ", cpu=" + cpu + ", price=" + price
				+ "]";
	}
	
	

}
